import {ScreenWidth,ScreenHeight } from '../config/devices';


const BASE_WIDTH = 375;
const BASE_HEIGHT = 726;


const scaleWidth = ScreenWidth / BASE_WIDTH;
const scaleHeight = ScreenHeight / BASE_HEIGHT;
const scale  = Math.min(scaleWidth,scaleHeight);



export const normalize = (size:number):number=> size * scale;
